﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SendEmail.aspx.cs" Inherits="SendEmail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>发送Email</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table style="width: 600px">
        
            <tr>
                <td style="width: 206px; height: 26px;">
                    <asp:Label ID="Label5" runat="server" Text="Subject:"></asp:Label></td>
                <td style="width: 302px; height: 26px">
                    <asp:TextBox ID="subject" runat="server" Width="250px"></asp:TextBox>  <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="输入发送邮件的主题!"
                            ControlToValidate="subject" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 206px; height: 26px;">
                    <asp:Label ID="Label6" runat="server" Text="Email Body:"></asp:Label></td>
                <td style="width: 302px; height: 26px">
                    <asp:TextBox ID="bodyAll" runat="server" Width="250px"></asp:TextBox>  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="输入发送邮件的内容!"
                            ControlToValidate="bodyAll" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr> 
            <tr>
                 <td style="height: 26px;" colspan="2">
                   <asp:Label ID="msg" runat="server" ></asp:Label></td>
            </tr>
              
            <tr>
                 <td style="height: 26px;" colspan="2">
                     <asp:Button ID="butSend" runat="server" Text="SEND" OnClick="butSend_Click" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
